import { request } from '@pkg/request/src';

export enum Api {
  page = '/youZan/page',
  add = '/youZan/save',
  list = '/youZan/list',
  update = '/youZan/update',
  remove = '/youZan/remove',
}

export const youZanList = () =>
  request.get(
    { url: Api.list },
    {
      errorMessageMode: 'none',
      successMessageMode: 'none',
    },
  );
